
import 'package:mysql1/mysql1.dart';

///表tbpumcfg
class PumInfo{

  int id;
  int pumValue;
  String pumSName;
  String pumLName;
  int pumColor;
  int pumPush;

  PumInfo(this.id, this.pumValue, this.pumSName, this.pumLName, this.pumColor,
      this.pumPush);

  static PumInfo builder(ResultRow row) {
    int id = row[0];
    int pumValue = row[1];
    String pumSName = null==row[2] ? "":row[2].toString();
    String pumLName = null==row[3] ? "":row[3].toString();
    int pumColor = row[4];
    int pumPush = row[5];
    return PumInfo(id, pumValue, pumSName, pumLName, pumColor, pumPush);
  }
}